package Com.Hupochuan.Vo;

import java.sql.Timestamp;
import java.util.List;

import Com.Hupochuan.Uil.Util.TimeStringUtil;

/*
 * 演员表 Actor	
 */
public class Actor {
	//					字段名			字段类型			中文解析		缺省(Default)	备注
	private Long 		id;//			INT				ID			AUTO_INCREMENT	PRIMARY KEY
	private String 		name;//			VARCHAR(50)		主演名称		(空字符串)		UNIQUE KEY
	private String 		logoPath;//		VARCHAR(50)		海报图片路径	(空字符串)
	private String 		baikeUrl;//		VARCHAR(200)	百科网址		(空字符串)
	private String 		xlwbUrl;//		VARCHAR(200)	新浪微博网址	(空字符串)
	private String 		txwbUrl;//		VARCHAR(200)	腾讯微博网址	(空字符串)
	private String 		bdtbUrl;//		VARCHAR(200)	百度贴吧网址	(空字符串)
	private Float 		weight;//		FLOAT			权重			0
	private Timestamp 	createTime;//	DATETIME		创建时间		No default
	private Timestamp 	updateTime;//	DATETIME		更新时间		No default	

	private Long 				movieCount;//		电影数量
	private List<MovieActor> 	movieActorList;//	电影演员列表
	private String 				tempImgName="";//	临时图片名 用于存储数据时使用
	
	/*
	 * 获得转换的时间字符串
	 */
	public String getCreateTimeString() {
		return TimeStringUtil.getObject().timeToTimeString(this.createTime);
	}
	public String getUpdateTimeString() {
		return TimeStringUtil.getObject().timeToTimeString(this.updateTime);
	}
	
	/*
	 * 参数注入
	 */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Float getWeight() {
		return weight;
	}
	public void setWeight(Float weight) {
		this.weight = weight;
	}
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public String getLogoPath() {
		return logoPath;
	}
	public void setLogoPath(String logoPath) {
		this.logoPath = logoPath;
	}
	public String getXlwbUrl() {
		return xlwbUrl;
	}
	public void setXlwbUrl(String xlwbUrl) {
		this.xlwbUrl = xlwbUrl;
	}
	public String getTxwbUrl() {
		return txwbUrl;
	}
	public void setTxwbUrl(String txwbUrl) {
		this.txwbUrl = txwbUrl;
	}
	public String getBdtbUrl() {
		return bdtbUrl;
	}
	public void setBdtbUrl(String bdtbUrl) {
		this.bdtbUrl = bdtbUrl;
	}
	public Long getMovieCount() {
		return movieCount;
	}
	public void setMovieCount(Long movieCount) {
		this.movieCount = movieCount;
	}
	public String getBaikeUrl() {
		return baikeUrl;
	}
	public void setBaikeUrl(String baikeUrl) {
		this.baikeUrl = baikeUrl;
	}

	public Timestamp getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
	public List<MovieActor> getMovieActorList() {
		return movieActorList;
	}
	public void setMovieActorList(List<MovieActor> movieActorList) {
		this.movieActorList = movieActorList;
	}
	public String getTempImgName() {
		return tempImgName;
	}
	public void setTempImgName(String tempImgName) {
		this.tempImgName = tempImgName;
	}
}
